﻿using Ducu.SRV.ServiceInteface;
using Ducu.SRV.ViewModel.Chat;
using Ducu.SRV.ViewModel.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Ducu.UI.Responsible.Controllers
{
    public class ChatController : BaseController
    {
        #region Constructor

        private IChatService _chatService;
        public ChatController(IChatService chatService)
        {
            _chatService = chatService;
        }

        #endregion

        #region Child Actions

        [ChildActionOnly]
        public ActionResult _List(int withUserId)
        {
            IList<ItemModel> models = _chatService.Get(withUserId);
            return PartialView(models);
        }

        #endregion

    }
}